package com.ruoyi.plasma.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.plasma.mapper.PlasmaFollowUpMapper;
import com.ruoyi.plasma.domain.PlasmaFollowUp;
import com.ruoyi.plasma.service.IPlasmaFollowUpService;

/**
 * 回访管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
@Service
public class PlasmaFollowUpServiceImpl implements IPlasmaFollowUpService 
{
    @Autowired
    private PlasmaFollowUpMapper plasmaFollowUpMapper;

    /**
     * 查询回访管理
     * 
     * @param id 回访管理主键
     * @return 回访管理
     */
    @Override
    public PlasmaFollowUp selectPlasmaFollowUpById(Long id)
    {
        return plasmaFollowUpMapper.selectPlasmaFollowUpById(id);
    }

    /**
     * 查询回访管理列表
     * 
     * @param plasmaFollowUp 回访管理
     * @return 回访管理
     */
    @Override
    public List<PlasmaFollowUp> selectPlasmaFollowUpList(PlasmaFollowUp plasmaFollowUp)
    {
        return plasmaFollowUpMapper.selectPlasmaFollowUpList(plasmaFollowUp);
    }

    /**
     * 新增回访管理
     * 
     * @param plasmaFollowUp 回访管理
     * @return 结果
     */
    @Override
    public int insertPlasmaFollowUp(PlasmaFollowUp plasmaFollowUp)
    {
        return plasmaFollowUpMapper.insertPlasmaFollowUp(plasmaFollowUp);
    }

    /**
     * 修改回访管理
     * 
     * @param plasmaFollowUp 回访管理
     * @return 结果
     */
    @Override
    public int updatePlasmaFollowUp(PlasmaFollowUp plasmaFollowUp)
    {
        return plasmaFollowUpMapper.updatePlasmaFollowUp(plasmaFollowUp);
    }

    /**
     * 批量删除回访管理
     * 
     * @param ids 需要删除的回访管理主键
     * @return 结果
     */
    @Override
    public int deletePlasmaFollowUpByIds(Long[] ids)
    {
        return plasmaFollowUpMapper.deletePlasmaFollowUpByIds(ids);
    }

    /**
     * 删除回访管理信息
     * 
     * @param id 回访管理主键
     * @return 结果
     */
    @Override
    public int deletePlasmaFollowUpById(Long id)
    {
        return plasmaFollowUpMapper.deletePlasmaFollowUpById(id);
    }
}
